// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PUR_REJECTED_ORDER_ITEM
// * CreateDate    : 2011/10/25 11:27:58
// * Creater       : CodeSmith
// * LastChangeDate: 2011/10/25 11:27:58
// * LastChanger   : 2011/10/25 11:27:58
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class PurRejectedOrderItemEntity : EntityBase
    {
        public PurRejectedOrderItemTable TableSchema
        {
            get
            {
                return PurRejectedOrderItemTable.Current;
            }
		}
		
		public PurRejectedOrderItemEntity()
        {

        }
		
		public PurRejectedOrderItemEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RejectedOrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_ITEM_ID"]));
			this.RejectedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_ID"]));
			this.ArrivedItemId = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_ITEM_ID"]));
			this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
			this.RejectedReason = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_REASON"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }
		
		public PurRejectedOrderItemEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RejectedOrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_ITEM_ID"]));
			this.RejectedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_ID"]));
			this.ArrivedItemId = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_ITEM_ID"]));
			this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
			this.RejectedReason = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_REASON"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return PurRejectedOrderItemTable.Current;
            }
        }
		
		#region Perporty List
        public string RejectedOrderItemId
        {
            get { return Convert.ToString(GetData(PurRejectedOrderItemTable.C_REJECTED_ORDER_ITEM_ID)); }
            set { SetData(PurRejectedOrderItemTable.C_REJECTED_ORDER_ITEM_ID, value); }
        }
		
        public string RejectedOrderId
        {
            get { return Convert.ToString(GetData(PurRejectedOrderItemTable.C_REJECTED_ORDER_ID)); }
            set { SetData(PurRejectedOrderItemTable.C_REJECTED_ORDER_ID, value); }
        }
		
        public string ArrivedItemId
        {
            get { return Convert.ToString(GetData(PurRejectedOrderItemTable.C_ARRIVED_ITEM_ID)); }
            set { SetData(PurRejectedOrderItemTable.C_ARRIVED_ITEM_ID, value); }
        }
		
        public decimal Qty
        {
            get { return Convert.ToDecimal(GetData(PurRejectedOrderItemTable.C_QTY)); }
            set { SetData(PurRejectedOrderItemTable.C_QTY, value); }
        }
		
        public string RejectedReason
        {
            get { return Convert.ToString(GetData(PurRejectedOrderItemTable.C_REJECTED_REASON)); }
            set { SetData(PurRejectedOrderItemTable.C_REJECTED_REASON, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(PurRejectedOrderItemTable.C_REMARK)); }
            set { SetData(PurRejectedOrderItemTable.C_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

